import request from '@/utils/request'

// 用户日报表
export function getDailyStatistics(params) {
  return request({
    url: '/statement/daily',
    method: 'get',
    params
  })
}

// 用户月度报表
export function getMonthlyStatistics(params) {
  return request({
    url: '/statement/monthly',
    method: 'get',
    params
  })
}

// 用户分布统计
export function getDistributionStatistics(params) {
  return request({
    url: '/statement/distributionStatistics',
    method: 'get',
    params
  })
}

// 获取图文群发数据
export function getArticleStatistics(params) {
  return request({
    url: '/statement/getArticleTotal',
    method: 'get',
    params
  })
}

// 微信菜单报告
export function getWechatMenuStatistics(params) {
  return request({
    url: '/statement/wechatMenuReport',
    method: 'get',
    params
  })
}

// 导出用户日报表
export function exportDailyStatistics(params) {
  return request({
    url: '/statement/dailyExcle',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

// 导出用户月度报表
export function exportMonthlyStatistics(params) {
  return request({
    url: '/statement/monthlyExcle',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

// 导出用户分布统计
export function exportDistributionStatistics(params) {
  return request({
    url: '/statement/distributionStatisticsExcel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

// 导出微信菜单报告
export function exportWechatMenuStatistics(params) {
  return request({
    url: '/statement/wechatMenuReportExcle',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
